<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>angularJS包含</title>
    <link rel="stylesheet" href="../css/bootstrap.css">
    <script src="../js/angular.min.js"></script>

</head>
<body>
<button class="btn btn-success" ng-click="editUser('new')">
    <span class="glyphicon glyphicon-user"></span>创建新用户</button>
<hr>
<h3 ng-show="edit">创建新用户</h3>
<h3 ng-hide="edit">编辑用户</h3>

<form class="form-horizontal">
    <div class="form-group">
        <label class="col-sm-2 control-label">名</label>

        <div class="col-sm-10">
            <input placeholder="名" ng-model="fName">
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">姓</label>
        <div class="col-sm-10">
            <input placeholder="姓" ng-model="fName">
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">密码</label>

        <div class="col-sm-10">
            <input type="password" placeholder="密码" ng-model="fName">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">重复密码</label>
        <div class="col-sm-10">
            <input type="password" placeholder="重复密码" ng-model="fName">
        </div>
    </div>
    <hr>
    <button class="btn btn-success" >
        <span class="glyphicon glyphicon-save"></span>修改</button>
</form>
</body>
</html>